package org.findbugs.report.messages;

import org.dom4j.Node;

public class BugCategory {
    
    private String description;
    private String details;

    public static BugCategory create(Node categoryNode) {
        BugCategory category = new BugCategory();
        category.setDescription(categoryNode.selectSingleNode("Description").getText());
        category.setDetails(categoryNode.selectSingleNode("Details").getText());
        return category;
    }
    
    public String getDescription() {
        return description;
    }

    public String getDetails() {
        return details;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setDetails(String details) {
        this.details = details;
    }

}
